package com.hqully.labmanage.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalTime;

/**
 * [OpeningHour]实体类
 *
 * @author hqully
 * @date 2022-10-12 15:39:06
 */
@ApiModel(description = "实验室开放时间表")
@Data
public class OpeningHour implements Serializable {

    private static final long serialVersionUID = 191371278075819816L;
    
    /**
     * 物理id
     */
    @ApiModelProperty("物理id")
    @NotNull(message = "物理id不能为空")
    private Long id;
    
    /**
     * 实验室id
     */
    @ApiModelProperty("实验室id")
    @NotNull(message = "实验室id不能为空")
    private String labId;
    
    /**
     * 开始时间
     */
    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private LocalTime startTime;
    
    /**
     * 结束时间
     */
    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private LocalTime endTime;
    

}

